package com.chinasolf.yygh.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chinasoft.model.user.UserInfo;
import com.chinasoft.vo.user.LoginVo;
import com.chinasoft.vo.user.UserAuthVo;
import com.chinasoft.vo.user.UserInfoQueryVo;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author atguigu
 * @since 2022-03-24
 */
public interface UserInfoService extends IService<UserInfo> {
    //用户登录的方法（手机验证码）
    Map<String, Object> loginUser(LoginVo loginVo);

    UserInfo selectUserByOpenid(String openid);

    void userAuth(Long userId, UserAuthVo userAuthVo);


    IPage<UserInfo> selectPageUser(Page<UserInfo> pageParam, UserInfoQueryVo userInfoQueryVo);

    void lock(Long userId, Integer status);

    Map<String, Object> showUser(Long userId);

    void approval(Long userId, Integer authStatus);
}
